package com.ninong.ker.admin.domain;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * saas租户
 * </p>
 *
 * @author jmz
 */
@Data
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
@TableName("fw_tenant")
public class Tenant implements Serializable {

	private static final long serialVersionUID = 5757214508891529086L;

	@TableId(type = IdType.ASSIGN_UUID)
	private String id;

	private String phone;

	private String tenantName;

	/**
	 * 创建时间
	 */
	@TableField(value = "create_time", fill = FieldFill.INSERT)
	private Date createTime;

	/**
	 * 修改时间
	 */
	@TableField(value = "update_time", fill = FieldFill.UPDATE)
	private Date updateTime;

	private String creator;

	private String tenantCode;

	/**
	 * 状态
	 */
	private Boolean enabled;

	/**
	 * 状态
	 */
	private Boolean deleted;

}
